<h:outputLink value="#{facesContext.externalContext.requestContextPath}/home.xhtml">
<f:param name="javax.portlet.faces.ViewLink" value="true"/>
navigate to the test page
</h:outputLink>
When linking to any Facelets page within your portlet web application, you may use the following:
<h:outputLink value="#{facesContext.externalContext.requestContextPath}/home.xhtml">
<f:param name="javax.portlet.faces.ViewLink" value="true"/>
navigate to the test page
</h:outputLink>
To link to a non JSF View (such as jboss.org), you may use the following:
<h:commandLink actionListener="#{yourBean.yourListener}">
<f:param name="javax.portlet.faces.DirectLink" value="true"/>
navigate to the test page
</h:commandLink>
With a backing Bean that has the following:
public class YourBean {
public void yourListener() {
FacesContext.getCurrentInstance().getExternalContext().redirect("http://www.jboss.org");
}
}